package com.yuzhe.service.impl;

import com.yuzhe.model.Admin;
import com.yuzhe.service.AdminService;

public class AdminServiceImpl implements AdminService {
    public boolean checkUsernameIsExist(String username) {
        String sql = "select * from admin where username = ?";
        Admin first = Admin.dao.findFirst(sql, username);
        return first != null;
    }
}
